<?php 
defined('IN_SITE') or exit('Access Denied');
get_header();
?>
<base target='_self'>
<body>

<script>
function SelectActor(s)
{	
	actor = $(window.opener.document).find('#actor');
	if(s!=null)
	{
		if(actor.val() == '')
		{
			actor.val(s);
		}
		else if(actor.val().indexOf(s) == -1)
		{
			actor.val(actor.val()+','+s);
		}
	}
	//actor.focus();
	window.close();
}
</script>

<table cellpadding="0" cellspacing="1" class="table_list">
    <caption>关键词管理</caption>
<tr>
<th>关键词</th>
<!--<th>引用次数</th>-->
<th>点击次数</th>
</tr>
<?php 
if(is_array($infos)){
	foreach($infos as $info){
?>
<tr onClick="SelectActor('<?=$info['title']?>')" style="cursor:pointer">
<td><?=$info['title']?></td>
<!--<td><?=$info['usetimes']?></td>-->
<td><?=$info['hits']?></td>
</tr>
<?php 
	}
}
?>
</table>
<div class="pages"><?=$keyword->pages?></div>
</body>
</html>